#include "formshell.h"
#include "ui_formshell.h"
#include <QMetaMethod>
#include <QDebug>

FormShell::FormShell(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::FormShell)
{
    ui->setupUi(this);

#ifdef _CHECK_SHELL_META
    const QMetaObject* ptrMetaObj = this->metaObject();
    int index = 0;
    int count = ptrMetaObj->methodCount();
    for (index = 0; index < count; ++index) {
        QMetaMethod objMethod = ptrMetaObj->method(index);
        qDebug() << __FUNCTION__ << "typename: "  << objMethod.typeName();
        qDebug() << __FUNCTION__ << "signature: "  << objMethod.methodSignature();
        qDebug() << __FUNCTION__ << "methodType: "  << objMethod.methodType();
        qDebug() << __FUNCTION__ << "parameterNames: "  << objMethod.parameterNames();
    }
#endif
}

FormShell::~FormShell()
{
    qDebug() << __func__ << "----------------> be called!";
    delete ui;
}

void FormShell::onSlotBeCalled()
{

}
